package com.storeapp.entity.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.GeneratedValue;

@Entity
@Table(name = "store_product")
public class Product {
	private int id;
	private String productName;
	private double price;
	private String provider;
	private String pic;
	private String description;
	private Date arrivalTime;
	private String guarentee;
	public Product() {
		super();
	}
	public Product(String productName, double price, String provider,
			String pic, String description, Date arrivalTime, String guarentee) {
		super();
		this.productName = productName;
		this.price = price;
		this.provider = provider;
		this.pic = pic;
		this.description = description;
		this.arrivalTime = arrivalTime;
		this.guarentee = guarentee;
	}
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@Column(nullable = false)
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getProvider() {
		return provider;
	}
	public void setProvider(String provider) {
		this.provider = provider;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(Date arrivalTime) {
		this.arrivalTime = arrivalTime;
	}

	public String getGuarentee() {
		return guarentee;
	}

	public void setGuarentee(String guarentee) {
		this.guarentee = guarentee;
	}

}
